package cc.vv.btpartyjob.homepage.adapter

import android.widget.TextView
import cc.vv.baselibrary.adapter.SimpleCommonAdapter
import cc.vv.baselibrary.adapter.holder.ExtendViewHolder
import cc.vv.btpartyjob.homepage.R
import cc.vv.btpartyjob.homepage.moudel.bean.NoticeObj
import cc.vv.btpartyjob.jnimodule.server.OperationServer

/**
 * 通知公告adapter
 * Created by Chen.qi on 2018/10/24.
 */
class NoticeAdapter(layoutResId: Int) : SimpleCommonAdapter<NoticeObj>(layoutResId) {
    override fun convert(helper: ExtendViewHolder, item: NoticeObj, position: Int) {

        helper.getView<TextView>(R.id.tv_inl_title)?.text = item.title

        helper.getView<TextView>(R.id.tv_inl_time)?.text = OperationServer.formatStr(item.createTime)

    }
}